#include"Library.h"
void updateFile(LibList* libList)
{
	FILE* fi = fopen("书籍信息.txt", "w+b");
	bookNode* head = libList->head;
	while (head)
	{
		fwrite(head->data.ISBN, MAX_ISBN, 1, fi);
		fwrite(head->data.name, MAX_BOOK_NAME, 1, fi);
		fwrite(head->data.auth, MAX_AUTH_NAME, 1, fi);
		fwrite(&head->data.price, sizeof(float), 1, fi);
		fwrite(&head->data.inventory, sizeof(int), 1, fi);
		head = head->next;
	}
	fclose(fi);

}